<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>个人信息</title>
	<meta name="renderer" content="webkit">	
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">	
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">	
	<meta name="apple-mobile-web-app-status-bar-style" content="black">	
	<meta name="apple-mobile-web-app-capable" content="yes">	
	<meta name="format-detection" content="telephone=no">	
	<link rel="stylesheet" type="text/css" href="../../common/bootstrap/css/bootstrap.css" media="all">
	<link rel="stylesheet" type="text/css" href="../../common/layui/css/layui.css" media="all">
	<link rel="stylesheet" type="text/css" href="../../common/global.css" media="all">
	<style>
		.layui-laypage button, .layui-laypage input{
			display: inline-block;
			border-bottom: none;
			border-top: none;
			height: 26px;
			padding-left:0px;
		}
		.layui-laypage button{
			padding-left:15px;
		}
		.layui-table{
			margin:0 0;
		}
	</style>
</head>
<body>
<section class="layui-larry-box">
	<div class="larry-personal">
	    <div class="layui-tab">
            <blockquote class="layui-elem-quote news_search">
		<div class="layui-inline">
		    <div class="layui-input-inline">
		    	<input value="" placeholder="请输入关键字" class="layui-input search_input" type="text">
		    </div>
		    <a class="layui-btn search_btn">查询</a>
		</div>
		<!--<div class="layui-inline">
			<a class="layui-btn layui-btn-normal newsAdd_btn">添加文章</a>
		</div>
		<div class="layui-inline">
			<a class="layui-btn recommend" style="background-color:#5FB878">推荐文章</a>
		</div>
		<div class="layui-inline">
			<a class="layui-btn audit_btn">审核文章</a>
		</div>
		<div class="layui-inline">
			<a class="layui-btn layui-btn-danger batchDel">批量删除</a>
		</div>
		<div class="layui-inline">
			<div class="layui-form-mid layui-word-aux">本页面刷新后除新添加的文章外所有操作无效，关闭页面所有数据重置</div>
		</div>-->
	</blockquote>
            
	         <!-- 操作日志 -->
            <div class="layui-form news_list">
                <table id='tableid' lay-filter="test"></table>
		    </div>
	    </div>
	</div>	
</section>
<script type="text/javascript" src="../../common/layui/layui.all.js"></script>
<script type="text/javascript">
	var baseurl = 'http://localhost:81/tp5/public/index.php/gygt_water/';
	layui.use(['jquery','layer','element','laypage','table'],function(){
	      window.jQuery = window.$ = layui.jquery;
	      window.layer = layui.layer;
          var element = layui.element;
          var table = layui.table;
		  var wherecon ='';
		/**
		 * 加载表格数据
		 */
		var tableIns = 
		table.render({
		    elem: '#tableid'
		    ,url: baseurl+'Water/eq_lst.html' //数据接口
		    ,page: true //开启分页
		    ,limit:20
		    ,defaultToolbar: ['filter', 'print', 'exports']
		    ,method: 'post'
		    ,text: {
			    none: '暂无相关数据' 
			}
		    ,done: function(res, curr, count){
				
		    }
		    ,toolbar: 'default'
		    ,cols: [[ //表头
		      {field: 'device_id',align:'center', title: '编号'}
		      ,{field: 'device_name',align:'center', title: '名称' }
		      ,{field: 'area_name', align:'center',title: '分厂',width:60}
		      ,{field: 'NJLJLL', title: '年累积' } 
		      ,{field: 'YJLJLL', title: '月累积'}
		      ,{field: 'RJLJLL', title: '日累积'}
//		      ,{field: 'MTSSLL', title: '瞬时/每天'}
		      ,{field: 'MXSSSLL', title: '瞬时/每小时',width:80 }
//		      ,{field: 'MFZSSLL1', title: '瞬时/每分'}
		      ,{field: 'ZLJL', title: '正累积量',width:60}
		      ,{field: 'FLJL', title: '负累积量',width:60}
		      ,{field: 'JLJL', title: '净累积量',width:60}
		      ,{field: 'CreateTime', title: '最新数据时间',width:90}
		    ]]
		});		
		
		$(".search_btn").click(function(){
			wherecon = $(".search_input").val();
			tableIns.reload({
				where: { //设定异步数据接口的额外参数，任意设
				    where: {'wherecon': wherecon}
				  }
				  ,page: {
				    curr: 1 //重新从第 1 页开始
				  }
				}
			);
		});
    });
</script>
</body>
</html>